<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>

<body>
<script>
function changeImage()
{
	element=document.getElementById('myimage')
	if (element.src.match("bulbon"))
	{
		element.src="./image/111.jpg";
	}
	else
	{
		element.src="./image/qr.png";
	}
}
</script>
<img id="myimage" onclick="changeImage()" border="0" src="./image/111.jpg" width="100" height="180">
<p>点击灯泡 开/关 灯</p>

</body>
</html>